#include<stdio.h>
#pragma warning(disable:4996)
int main()
{
	int x;
	scanf("%d", &x);
	int y;
	int z = 1;

	for (y = 0; y < x; y++)
	{
		z = z * 2;
	}
	printf("%d", z);
	return 0;
}